const router = require('koa-router')();
const controller = require('../controller/c-posts')

// 重置到文章页
//router.get('/', controller.getRedirectPosts)
// 文章页
//router.get('/posts', controller.getPosts)
// post 发表文章
router.post('/create', controller.postCreate)
// post 全部文章文章
router.get('/article', controller.getPosts)

module.exports = router